package helloworld.dao;

import helloworld.dao.DAOException;
import helloworld.exception.DuplicateNewsException;
import helloworld.admin.bean.NewsAdminBean;;

/** 
 * @author TUYEN-DM
 *         <p>
 *         2009/05/25
 *         </p>
 *         <p>
 *         NewsDao is the DAO interface object of News.
 *         </p>
 */
public interface NewsDao {
	public NewsAdminBean fetchDetail(String newsTitle) throws DAOException;
	public NewsAdminBean fetchDetailID(int newsID) throws DAOException;
	public NewsAdminBean[] find(String newsTitle) throws DAOException;
	public int create(NewsAdminBean news) throws DAOException,DuplicateNewsException;
	public int update(NewsAdminBean news) throws DAOException,DuplicateNewsException;
	public void delete(int newsID) throws DAOException;

}
